package com.liuchong.rent.entity;

import java.util.NoSuchElementException;

public class PriceList {
    private Long id;
    private Double rent_cost;
    private Integer lease_term;
    private Character item_type;

    public Long getId(){
        if (id == null) {
            throw new NoSuchElementException("No id present");
        }
        return id;
    }
    public void setId(Long id){
        this.id = id;
    }

    public Double getRent_cost(){
        if (rent_cost == null) {
            throw new NoSuchElementException("No rent_cost present");
        }
        return rent_cost;
    }
    public void setRent_cost(Double rent_cost){
        this.rent_cost = rent_cost;
    }

    public Integer getLease_term(){
        if (lease_term == null) {
            throw new NoSuchElementException("No lease_term present");
        }
        return lease_term;
    }
    public void setLease_term(Integer lease_term){
        this.lease_term = lease_term;
    }

    public Character getItem_type(){
        if (item_type == null) {
            throw new NoSuchElementException("No item_type present");
        }
        return item_type;
    }
    public void setItem_type(Character item_type){
        this.item_type = item_type;
    }
}
